package net.wexoo.onlinedivelog.proxy.dive;

import net.wexoo.onlinedivelog.dal.IDAO;
import net.wexoo.onlinedivelog.entity.dive.DiveBean;
import net.wexoo.onlinedivelog.proxy.AbstractProxy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DiveSessionProxy extends AbstractProxy<DiveBean> implements IDiveProxy {

  @Autowired
  private IDAO<DiveBean> diveDAO;

  public final void setDao(final IDAO<DiveBean> daoToSet) {
    this.diveDAO = daoToSet;
    this.diveDAO.setClazz(DiveBean.class);
  }

  @Override
  public IDAO<DiveBean> getDao() {
    return diveDAO;
  };
}